package cn.whit.blog.dao;

import java.sql.SQLException;
import java.util.List;

import cn.whit.blog.domain.Tcommit;
import cn.whit.blog.util.DynamicQuery;

public interface TcommitDao {
	
	Tcommit findById(String id) throws SQLException;
	
	List<Tcommit> findAll() throws SQLException;

	int findTotalRecords() throws Exception;

	List<Tcommit> findAllWithPage(int startIndex, int pageSize) throws Exception;

	List<Tcommit> selectByQuery(DynamicQuery query);

	List<Tcommit> findAllWithPageAndQuery(int startIndex, int pageSize, DynamicQuery query) throws Exception;

	int findTotalRecordsAndQuery(DynamicQuery query) throws Exception;

	void save(Tcommit tcommit) throws SQLException;

	List<Tcommit> findAllByBlogIdWithPageAndQuery(int startIndex, int pageSize, DynamicQuery query, String blogid) throws SQLException;

	int findTotalRecordsByBlogIdAndQuery(DynamicQuery query, String blogid) throws SQLException;

	void deleteByVoteId(String s) throws SQLException;
	
	
}
